mkboot - program to make a bootable device (fd, ata, tffs)
mkbootAhci( ) - create a boot AHCI disk from a specified file
mkMbrAhci( ) - create MasterBootRecord on sector 0 of the specified hard disk
This library creates a boot diskette or disk.
mkbootFd( ) creates a boot floppy disk. mkbootAta( ) creates a boot IDE/ATA disk. mkbootAhci( ) creates a boot vxBus AHCI disk.
mkMbr( ) creates MasterBootRecord on sector 0 of IDE/ATA disk. mkMbrAhci( ) creates MasterBootRecord on sector 0 of vxBus AHCI disk.
none
mkbootAhci( ) - create a boot AHCI disk from a specified file
STATUS mkbootAhci
(
int ctrl, /* controller number: (0 - 6), most board only have one controller */
int drive, /* drive number: (0 - 32) */
char *in /* name of file to read: "bootrom.bin" */
)
This command creates a AHCI boot disk from a specified file Note that the disk should have a FAT16 or a FAT12 volume. FAT32 volumes are not supported.
The following example makes a bootable hard disk from the file named bootrom.bin to the AHCI ctrl 0, drive 0: "c:" drive.
-> mkbootAhci 0, 0, "bootrom.bin"
OK, or ERROR if there is an error copying from in to the disk.
Not Available
mkMbrAhci( ) - create MasterBootRecord on sector 0 of the specified hard disk
STATUS mkMbrAhci
(
int ctrl, /* controller number: (0 - 1) */
int drive /* drive number: (0 - 1) */
)
This command creates an MBR (FreeBSD version) on sector 0 of the specified hard drive. This will allow partitioning and booting of vxWorks images from within a vxWorks application. The hard disk will not have to be first "fdisk'd" on a DOS type platform.
The following example places the MBR on sector 0 of the hard disk
-> mkMbrAhci 0, 0
OK, or ERROR if there is an error copying from in to the disk.
Not Available